/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.dp.vo;

import java.io.Serializable;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Embeddable;

/**
 *
 * @author wyr
 */
@Embeddable
public class TWeatherdetailPK implements Serializable {
    @Basic(optional = false)
    @Column(name = "province")
    private String province;
    @Basic(optional = false)
    @Column(name = "weatherdate")
    private String weatherdate;

    @Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((province == null) ? 0 : province.hashCode());
		result = prime * result
				+ ((weatherdate == null) ? 0 : weatherdate.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		TWeatherdetailPK other = (TWeatherdetailPK) obj;
		if (province == null) {
			if (other.province != null)
				return false;
		} else if (!province.equals(other.province))
			return false;
		if (weatherdate == null) {
			if (other.weatherdate != null)
				return false;
		} else if (!weatherdate.equals(other.weatherdate))
			return false;
		return true;
	}

	public String getProvince() {
		return province;
	}

	public void setProvince(String province) {
		this.province = province;
	}

	public String getWeatherdate() {
		return weatherdate;
	}

	public void setWeatherdate(String weatherdate) {
		this.weatherdate = weatherdate;
	}

	public TWeatherdetailPK() {
    }

    public TWeatherdetailPK(String province, String weatherdate) {
        this.province = province;
        this.weatherdate = weatherdate;
    }

    
}
